package com.itheima.health.service;

/**
 * @Author gentleman Ma
 * @Date created in 2020/1/5
 * @description 分布式锁服务接口
 * @Version 1.0
 */

public interface ExtLock {

    //ExtLock基于zk实现分布式锁
     boolean  getLock();

    //释放锁
     void unLock();


     void waitLock();


     boolean tryLock();
}
